<div id="links">
    <div class="col" id="column-speciality-left">
        <ul>
            <li class="title">Find doctors by speciality</li>
            <?php foreach ($specialities as $key => $speciality): ?>
                <?php if ($key <= 4): ?>
                    <li>
                        <?php echo link_to2($speciality['name'], 'search_doctor', array('speciality_id' => $speciality['id']), array()) ?>
                    </li>
                <?php endif; ?>
            <?php endforeach; ?>
        </ul>
    </div>
    <div class="col" id="column-speciality-right">
        <ul>
            <li class="title">&nbsp;</li>
            <?php foreach ($specialities as $key => $speciality): ?>
                <?php if ($key >= 5 && $key < 9 || ($key == 9 && count($specialities) == 10)): ?>
                    <li>
                        <?php echo link_to2($speciality['name'], 'search_doctor', array('speciality_id' => $speciality['id']), array()) ?>
                    </li>
                <?php elseif ($key == 9): ?>
                    <li>
                        <?php echo link_to2('More specialities...', 'speciality_more', array(), array()) ?>
                    </li>
                <?php endif; ?>
            <?php endforeach; ?>
        </ul>
    </div>
    <div class="col" id="column-city">
        <ul>
            <li class="title">Find doctors by city</li>
            <?php foreach ($cities as $key => $city): ?>
                <?php if ($key <= 3 || ($key == 4 && count($cities) == 5)): ?>
                    <li>
                        <?php echo link_to2($city['name'], 'search_doctor', array('city_id' => $city['id']), array()) ?>
                    </li>
                <?php elseif ($key == 4): ?>
                    <li>
                        <?php echo link_to2('More cities...', 'city_more', array(), array()) ?>
                    </li>
                <?php endif; ?>
            <?php endforeach; ?>
        </ul>
    </div>
    <div class="col" id="column-more">
        <ul>
            <li class="title">More on DocPlus</li>
            <li><a href="<?php echo url_for('@static_about_us') ?>">About Us</a></li>
            <li><a href="<?php echo url_for('@static_find_a_doctor') ?>">Find a Doctor</a></li>
            <li><a href="<?php echo url_for('@static_how_it_works') ?>">How it Works?</a></li>
            <li><a href="<?php echo url_for('@static_why_join') ?>">Why Join?</a></li>
            <li><a href="<?php echo url_for('@static_careers') ?>">We need your skills!</a></li>
        </ul>
    </div>
</div>
<div id="bottom-most">
    <div class="inline-block" id="trade-mark">
        <p id="copyright">&copy; <?php echo date("Y") ?> DocPlus is a registered trademark of DocPlus Healthcare Solutions.</p>
    </div>
    <div class="inline-block" id="other-links">
        <ul>
            <li><a href="<?php echo url_for('@static_terms_of_use') ?>">Terms of Use</a></li>
            <li><a href="<?php echo url_for('@static_privacy') ?>">Privacy</a></li>
            <li><a href="<?php echo url_for('@static_doctors_answers') ?>">Doctors Q & A</a></li>
            <li><a href="<?php echo url_for('@static_our_investors') ?>">Our Investors</a></li>
            <li><a href="<?php echo url_for('@static_careers') ?>">Careers</a></li>
            <li><a href="<?php echo url_for('@static_our_team') ?>">Our Team</a></li>
            <li><a href="<?php echo url_for('@static_contact_us') ?>">Contact Us</a></li>
        </ul>
    </div>
</div>